package com.aqgj.Attachment.bean;


import com.aqgj.util.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Entity
@Table(name = "attachment")
public class Attachment implements BaseEntity {

    private String id;//

    private String fileName;//文件名

    private String fileSize;//文件大小

    private String fileType;//文件类型

    private byte[] fileBody;//二进制文件

    private String businessId;//业务id

    private String filePath;//文件路径与id一致

    private String uploaderId;//上传者id

    private java.util.Date uploadTime;//上传时间

    private String workItem;//业务文件类型标识

    private String uploaderName;//上传者

    public void setId(String value){
        this.id = value;
    }
    public void setFileName(String value){
        this.fileName = value;
    }
    public void setFileSize(String value){
        this.fileSize = value;
    }
    public void setFileType(String value){
        this.fileType = value;
    }
    public void setFileBody(byte[] value){
        this.fileBody = value;
    }
    public void setBusinessId(String value){
        this.businessId = value;
    }
    public void setFilePath(String value){
        this.filePath = value;
    }
    public void setUploader(String value){
        this.uploaderId = value;
    }
    public void setUploadTime(java.util.Date value){
        this.uploadTime = value;
    }
    public void setWorkItem(String value){
        this.workItem = value;
    }
    public void setUploaderName(String value){
        this.uploaderName = value;
    }
    @Id
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name="system-uuid", strategy="uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId(){
        return this.id;
    }
    @Column(name ="file_name",unique=false,nullable=true,insertable=true,updatable=true,length=256)
    public String getFileName(){
        return this.fileName;
    }
    @Column(name ="file_size",unique=false,nullable=true,insertable=true,updatable=true,length=1024)
    public String getFileSize(){
        return this.fileSize;
    }
    @Column(name ="file_type",unique=false,nullable=true,insertable=true,updatable=true,length=1024)
    public String getFileType(){
        return this.fileType;
    }
    @Column(name ="file_body",unique=false,nullable=true,insertable=true,updatable=true,length=2147483647)
    public byte[] getFileBody(){
        return this.fileBody;
    }
    @Column(name ="business_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getBusinessId(){
        return this.businessId;
    }
    @Column(name ="file_path",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getFilePath(){
        return this.filePath;
    }
    @Column(name ="uploader_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getUploader(){
        return this.uploaderId;
    }
    @Column(name ="upload_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public java.util.Date getUploadTime(){
        return this.uploadTime;
    }
    @Column(name ="work_item",unique=false,nullable=true,insertable=true,updatable=true,length=50)
    public String getWorkItem(){
        return this.workItem;
    }
    @Column(name ="uploader_name",unique=false,nullable=true,insertable=true,updatable=true,length=50)
    public String getUploaderName(){
        return this.uploaderName;
    }


} 
